package com.xl.rpc.codec;

import com.alibaba.fastjson.JSON;

/**
 * @author 辜圆圆
 * @description: gzy的项目
 * @date 2020/3/812:23 AM
 */
public class JSONEncoder implements  Encoder{
    @Override
    public byte[] encode(Object object) {
        return JSON.toJSONBytes(object);
    }
}
